﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;

namespace Gaiocorp.SLMapViewer.Legend
{
    public class LayerField
    {
        private string _Name;
        public string Name 
        {
            get { return _Name;}
        }

        public LayerField(string sName)
        {
            Clear();
            LoadValues(sName);
        }
      
        public void Clear()
        {
            _Name = string.Empty;
        }
        public void LoadValues(string sName)
        {
            Clear();
            _Name = sName;
        }
    }

    public class LayerFields : System.Collections.Generic.List<LayerField>
    {
        public LayerField getLayerByName(string lyrName)
        {
            foreach (LayerField obj in this)
            {
                if (obj.Name == lyrName) return obj;
            }
            return null;
        }
    }
}
